Skip to main content

$_SESSION

Type

keyword

Summary

$_SESSION is an array variable that contains the data for the current active session.

Syntax

$_SESSION

Description

Use the $_SESSION keyword to access the array containing the data for the current active session.

$_SESSION is only available when running in CGI mode (Server).

Examples

put $_SESSION into tSessionArray
put "ben" into $_SESSION["user_name"]
put $_SESSION["id"] into tSessionID

command: stop session, start session, delete session

property: sessionSavePath, sessionLifetime, sessionId, sessionName

Compatibility and Support

Introduced

LiveCode 5.0

OS

mac

windows

linux

Platforms

server

Thank you for your feedback!

Was this page helpful?